package cn.sibu.plugin.authorize.util;

/**
 * 
 * @ClassName: RegexRule
 * @Description: TODO(正则规则)
 * @author A18ccms a18ccms_gmail_com
 * @date 2014-12-3 上午10:15:43
 * 
 */
public class RegexRule {
	// 邀请码
	public final static String INVITECODE = "^[0-9A-Z]{10}$"; //只能 数字或大写字母
	// 用户名
	public final static String USERNAME = "^(?i)([a-zA-Z]{1}[_0-9a-zA-Z-]{5,19})$";
	//微信号，以字母开头，可以使用下划线，减号
	public final static String WEIXINNUM = "^(?i)([a-zA-Z][A-Za-z0-9_-]{5,19})$";
	// 手机号
	public final static String PHONENUM = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0-9]))\\d{8}$";
	// 邮箱
	public final static String MAIL = "^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$";
	// 身份证
	public final static String CARDNUM = "^([1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X))|([A-Z]{1}[0-9]{6}\\(([0-9]{1}|A)\\))|([1-9]{1}[0-9]{6}\\([0-9]{1}\\))|(^[A-Z]{1}[0-9]{8,10})$";
	// 密码
	public final static String PASSWORD = "^[0-9a-zA-Z_-]{6,20}$";
	// 真实姓名
	public final static String REALNAME = "([\u4e00-\u9fa5]{2,32})|([a-zA-Z]{6,32})";
	// 微信名
	public final static String WEIXINNAME = "^\\W{2,32}$";
	// 淘宝店铺名
	public final static String TAOBAONAME = "([\u4e00-\u9fa5]{2,32})|([a-zA-Z]{2,32})";
	// 旺旺号
	public final static String WANGWANG = "^[a-zA-Z0-9_\\W][^\u4e00-\u9fa5]{5,31}$";
	// 任意数字
	public static final String ISNUMBER= "^[0-9]*$";
	//淘宝链接
	public static final String TAOBAOURL ="^(?i)((http://){0,1}([A-Za-z0-9-_]+).taobao.com)$";
	//qq
	public static final String QQ= "^[0-9]*$";
	//公司名
	public static final String COMPANY ="([\u4e00-\u9fa5]{2,32})|([a-zA-Z]{2,32})";
	
}
